package cn.hzxs.zjn.studentmanagement.sevice.serviceImpl;

import cn.hzxs.zjn.studentmanagement.dao.PlanMapper;
import cn.hzxs.zjn.studentmanagement.domain.Page;
import cn.hzxs.zjn.studentmanagement.domain.Plan;
import cn.hzxs.zjn.studentmanagement.sevice.PlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author: Zjn *Bring it on!!!*
 * @Date: 2021/3/28 14:31
 * Note:
 */
@Service("PlanService")
public class PlanServiceImpl implements PlanService {
    @Autowired
    PlanMapper planMapper;

    @Override
    public List<Plan> getPlanByAuthorId(Plan plan) {
        return planMapper.getPlanByAuthorId(plan);
    }

    @Override
    public void addPlan(Plan plan) {
        planMapper.addPlan(plan);
    }

    @Override
    public List<Plan> getPlan(Page page) {
        return planMapper.getPlan(page);
    }
}
